package com.jiangnan.warehouse_management.dto.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

@Data
public class OutboundRecordRequest {
    @NotNull(message = "物品ID不能为空")
    @Positive(message = "物品ID必须大于0")
    private Integer itemId;

    @NotNull(message = "仓库ID不能为空")
    @Positive(message = "仓库ID必须大于0")
    private Integer warehouseId;

    @NotNull(message = "出库数量不能为空")
    @Positive(message = "出库数量必须大于0")
    private Integer quantity;

    @NotNull(message = "单价不能为空")
    @Positive(message = "单价必须大于0")
    private Double unitPrice;

    @NotBlank(message = "接收方不能为空")
    private String recipient;

    private String notes;
} 